Sometimes composers need to score precise lists of note-lengths. The g-length1 function provides a short-hand for writing note-lengths quickly and accurately in both single and multiple lists.
(g-length 16 '(0 1 1 0))
=> (-1/16 1/16 1/16 -1/16)
In this example the denominator is a sixteenth '(16) followed by the numerator shorthand for a combination of note-length rests '(0) and note-lengths '(1).
Notice in these example with multiple lists how the numerator '(2) adds up the denominators. The denominators also lists the respective value for each list.
In these examples you can see more complex operations on multiple lists. The function will also work with ratios as denominators and complex irrationals.